#!/usr/bin/python
# coding:utf-8

# @FileName:    main.py
# @Time:        2024/1/2 22:27
# @Author:      bubu
# @Project:     douyinLiveWebFetcher

import threading
import tkinter as tk
from liveMan import DouyinLiveWebFetcher
from ball_game import BallGame

def run_ball_game():
    root = tk.Tk()
    game = BallGame(root)
    root.mainloop()

if __name__ == '__main__':
    # 创建并启动 DouyinLiveWebFetcher 线程
    live_id = '208823316033'
    fetcher_thread = threading.Thread(target=DouyinLiveWebFetcher(live_id).start)
    fetcher_thread.start()

    # 在主线程中运行 ball_game
    run_ball_game()